package com.itheima.Demo01.demo01;

import java.io.*;

public class Test05 {
    public static void main(String[] args) throws IOException {
        File f1 = new File("D:\\Program Files\\feiq\\Recv Files\\day12\\day11io\\讲义\\img\\字符流.png");
        File f2 = new File("E:\\", f1.getName());
        BufferedInputStream fis = new BufferedInputStream(new FileInputStream(f1));
        BufferedOutputStream fos = new BufferedOutputStream(new FileOutputStream(f2));

        byte[] b1 = new byte[1024];
        int len;
        while ((len = fis.read(b1)) != -1) {
             fos.write(b1,0,len);
        }
        fos.close();
        fis.close();
    }
}
